package com.chengqj.adapter;

/**
 * @program: pattern
 * @description: 适配器角色
 * @author: chengqj
 * @create: 2018-08-02 09:02
 **/
public class LoginServiceAdapter {
    private ILoginService loginService;

    public LoginServiceAdapter(ILoginService loginService) {
        this.loginService = loginService;
    }

    public String newLogin(String userName, String password, String verificationCode) {
        System.out.println("组合方式验证验证码");
        return loginService.login(userName, password);
    }
}
